home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / sun-calendar-event-dialog.xul < prev    next >
Extensible Markup Language  |  2008-01-28  |  55KB  |  1,098 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is Sun Microsystems code.
  16.    -
  17.    - The Initial Developer of the Original Code is Sun Microsystems.
  18.    - Portions created by the Initial Developer are Copyright (C) 2006
  19.    - the Initial Developer. All Rights Reserved.
  20.    -
  21.    - Contributor(s):
  22.    -   Michael Buettner <michael.buettner@sun.com>
  23.    -   Philipp Kewisch <mozilla@kewis.ch>
  24.    -   Stefan Sitter <ssitter@gmail.com>
  25.    -
  26.    - Alternatively, the contents of this file may be used under the terms of
  27.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  28.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.    - in which case the provisions of the GPL or the LGPL are applicable instead
  30.    - of those above. If you wish to allow use of your version of this file only
  31.    - under the terms of either the GPL or the LGPL, and not to allow others to
  32.    - use your version of this file under the terms of the MPL, indicate your
  33.    - decision by deleting the provisions above and replace them with the notice
  34.    - and other provisions required by the GPL or the LGPL. If you do not delete
  35.    - the provisions above, a recipient may use your version of this file under
  36.    - the terms of any one of the MPL, the GPL or the LGPL.
  37.    -
  38.    - ***** END LICENSE BLOCK ***** -->
  39.  
  40. <?xml-stylesheet type="text/css" href="chrome://global/skin/global.css"?>
  41. <?xml-stylesheet type="text/css" href="chrome://calendar/skin/sun-calendar-event-dialog.css"?>
  42. <?xml-stylesheet type="text/css" href="chrome://calendar/content/sun-calendar-event-dialog.css"?>
  43. <?xml-stylesheet type="text/css" href="chrome://calendar/content/datetimepickers/datetimepickers.css"?>
  44.  
  45. <!DOCTYPE dialog [
  46.     <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  47.     <!ENTITY % globalDTD SYSTEM "chrome://calendar/locale/global.dtd">
  48.     <!ENTITY % calendarDTD SYSTEM "chrome://calendar/locale/calendar.dtd">
  49.     <!ENTITY % sunDialogDTD SYSTEM "chrome://calendar/locale/sun-calendar-event-dialog.dtd">
  50.     <!ENTITY % eventDialogDTD SYSTEM "chrome://calendar/locale/calendar-event-dialog.dtd">
  51.     %brandDTD;
  52.     %globalDTD;
  53.     %calendarDTD;
  54.     %sunDialogDTD;
  55.     %eventDialogDTD;
  56. ]>
  57.  
  58. <dialog id="sun-calendar-event-dialog"
  59.         title="&event.title.label;"
  60.         onload="onLoad()"
  61.         ondialogaccept="return onAccept();"
  62.         ondialogcancel="return onCancel();"
  63.         persist="screenX screenY"
  64.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  65.  
  66.     <stringbundleset id="stringbundleset">
  67.       <stringbundle id="languageBundle"
  68.                     src="chrome://global/locale/languageNames.properties"/>
  69.     </stringbundleset>
  70.  
  71.     <!-- Javascript includes -->
  72.     <script type="application/x-javascript"
  73.             src="chrome://calendar/content/sun-calendar-event-dialog.js"/>
  74.     <script type="application/x-javascript"
  75.             src="chrome://calendar/content/calendar-dialog-utils.js"/>
  76.     <script type="application/x-javascript"
  77.             src="chrome://calendar/content/calendar-ui-utils.js"/>
  78.     <script type="application/x-javascript"
  79.             src="chrome://calendar/content/calUtils.js"/>
  80.     <script type="application/x-javascript"
  81.             src="chrome://calendar/content/calApplicationUtils.js"/>
  82.     <script type="application/x-javascript"
  83.             src="chrome://global/content/globalOverlay.js"/>
  84.     <script type="application/x-javascript"
  85.             src="chrome://global/content/printUtils.js"/>
  86.  
  87.     <!-- Command updater -->
  88.     <commandset id="globalEditMenuItems"
  89.                 commandupdater="true"
  90.                 events="focus"
  91.                 oncommandupdate="goUpdateGlobalEditMenuItems()"/>
  92.     <commandset id="selectEditMenuItems"
  93.                 commandupdater="true"
  94.                 events="select"
  95.                 oncommandupdate="goUpdateSelectEditMenuItems()"/>
  96.     <commandset id="undoEditMenuItems"
  97.                 commandupdater="true"
  98.                 events="undo"
  99.                 oncommandupdate="goUpdateUndoEditMenuItems()"/>
  100.     <commandset id="clipboardEditMenuItems"
  101.                 commandupdater="true"
  102.                 events="clipboard"
  103.                 oncommandupdate="goUpdatePasteMenuItems()"/>
  104.  
  105.     <!-- Commands -->
  106.     <commandset id="itemCommands">
  107.  
  108.         <!-- File menu -->
  109.         <command id="cmd_file_new_event"
  110.                  oncommand="openNewEvent()"/>
  111.         <command id="cmd_file_new_message"
  112.                  oncommand="openNewMessage()"/>
  113.         <command id="cmd_file_new_card"
  114.                  oncommand="openNewCardDialog()"/>
  115.         <command id="cmd_file_close"
  116.                  oncommand="cancelDialog()"/>
  117.         <command id="cmd_save"
  118.                  disable-on-readonly="true"
  119.                  oncommand="onCommandSave()"/>
  120.         <command id="cmd_printSetup"
  121.                  oncommand="PrintUtils.showPageSetup()"/>
  122.         <command id="cmd_print"
  123.                  disabled="true"
  124.                  oncommand="calPrint()"/>
  125.         <command id="cmd_file_exit"
  126.                  oncommand="onCommandExit()"/>
  127.  
  128.         <!-- Edit menu -->
  129.         <command id="cmd_undo"
  130.                  disabled="true"
  131.                  oncommand="goDoCommand('cmd_undo')"/>
  132.         <command id="cmd_redo"
  133.                  disabled="true"
  134.                  oncommand="goDoCommand('cmd_redo')"/>
  135.         <command id="cmd_cut"
  136.                  disabled="true"
  137.                  oncommand="goDoCommand('cmd_cut')"/>
  138.         <command id="cmd_copy"
  139.                  disabled="true"
  140.                  oncommand="goDoCommand('cmd_copy')"/>
  141.         <command id="cmd_paste"
  142.                  disabled="true"
  143.                  oncommand="goDoCommand('cmd_paste')"/>
  144.         <command id="cmd_selectAll"
  145.                  disabled="true"
  146.                  oncommand="goDoCommand('cmd_selectAll')"/>
  147.  
  148.         <!-- View menu -->
  149.         <command id="cmd_toolbar"
  150.                  oncommand="onCommandViewToolbar('event-toolbar',
  151.                                                  'view-toolbars-event-menuitem')"/>
  152.         <command id="cmd_customize"
  153.                  oncommand="onCommandCustomize()"/>
  154.  
  155.         <!-- Toolbar commands -->
  156.         <command id="cmd_accept"
  157.                  disable-on-readonly="true"
  158.                  oncommand="acceptDialog();"/>
  159.         <command id="cmd_recurrence"
  160.                  oncommand="editRepeat();"/>
  161.         <command id="cmd_attendees"
  162.                  oncommand="editAttendees();"/>
  163.         <command id="cmd_email"
  164.                  oncommand="sendMailToAttendees(window.attendees);"/>
  165.         <command id="cmd_email_undecided"
  166.                  oncommand="sendMailToUndecidedAttendees(window.attendees);"/>
  167.         <command id="cmd_status_none"
  168.                  oncommand="editStatus(event.target)"
  169.                  value="NONE"/>
  170.         <command id="cmd_status_tentative"
  171.                  oncommand="editStatus(event.target)"
  172.                  value="TENTATIVE"/>
  173.         <command id="cmd_status_confirmed"
  174.                  oncommand="editStatus(event.target)"
  175.                  value="CONFIRMED"/>
  176.         <command id="cmd_status_cancelled"
  177.                  oncommand="editStatus(event.target)"
  178.                  value="CANCELLED"/>
  179.         <command id="cmd_priority_none"
  180.                  oncommand="editPriority(event.target)"
  181.                  value="0"/>
  182.         <command id="cmd_priority_low"
  183.                  oncommand="editPriority(event.target)"
  184.                  value="9"/>
  185.         <command id="cmd_priority_normal"
  186.                  oncommand="editPriority(event.target)"
  187.                  value="5"/>
  188.         <command id="cmd_priority_high"
  189.                  oncommand="editPriority(event.target)"
  190.                  value="1"/>
  191.         <command id="cmd_showtimeas_busy"
  192.                  oncommand="editShowTimeAs(event.target)"
  193.                  value="OPAQUE"/>
  194.         <command id="cmd_showtimeas_free"
  195.                  oncommand="editShowTimeAs(event.target)"
  196.                  value="TRANSPARENT"/>
  197.         <command id="cmd_url"
  198.                  disable-on-readonly="true"
  199.                  oncommand="editURL()"/>
  200.         <command id="cmd_timezone"
  201.                  oncommand="updateDateTime()"/>
  202.     </commandset>
  203.  
  204.     <keyset>
  205.         <key id="new-event-key"
  206.              modifiers="control"
  207.              key="E"
  208.              command="cmd_file_new_event"/>
  209.         <key id="new-message-key"
  210.              modifiers="accel"
  211.              key="M"
  212.              command="cmd_file_new_message"/>
  213.         <key id="close-key"
  214.              modifiers="accel"
  215.              key="W"
  216.              command="cmd_file_close"/>
  217.         <key id="save-key"
  218.              modifiers="accel"
  219.              key="S"
  220.              command="cmd_save"/>
  221.         <key id="print-key"
  222.              modifiers="accel"
  223.              key="P"
  224.              command="cmd_print"/>
  225.         <key id="exit-key"
  226.              modifiers="accel"
  227.              key="Q"
  228.              command="cmd_file_exit"/>
  229.         <key id="undo-key"
  230.              modifiers="accel"
  231.              key="Z"
  232.              command="cmd_undo"/>
  233.         <key id="redo-key"
  234.              modifiers="accel"
  235.              key="Y"
  236.              command="cmd_redo"/>
  237.         <key id="cut-key"
  238.              modifiers="accel"
  239.              key="X"
  240.              command="cmd_cut"/>
  241.         <key id="copy-key"
  242.              modifiers="accel"
  243.              key="C"
  244.              command="cmd_copy"/>
  245.         <key id="paste-key"
  246.              modifiers="accel"
  247.              key="V"
  248.              command="cmd_paste"/>
  249.         <key id="select-all-key"
  250.              modifiers="accel"
  251.              key="A"
  252.              command="cmd_selectAll"/>
  253.     </keyset>
  254.  
  255.   <popup id="event-dialog-toolbar-context-menu">
  256.     <menuitem id="CustomizeDialogToolbar"
  257.               label="&event.menu.view.toolbars.customize.label;"
  258.               command="cmd_customize"/>
  259.   </popup>
  260.  
  261.   <!-- Toolbox contains the toolbar and menubar -->
  262.     <toolbox id="event-toolbox" class="toolbox-top" mode="full">
  263.  
  264.         <!-- Menubar -->
  265.         <menubar id="event-menubar">
  266.  
  267.             <!-- File menu -->
  268.             <menu label="&event.menu.file.label;"
  269.                   accesskey="&event.menu.file.accesskey;"
  270.                   id="file-menu">
  271.                 <menupopup id="file-menupopup">
  272.                     <menu id="file-new-menu"
  273.                           label="&event.menu.file.new.label;"
  274.                           accesskey="&event.menu.file.new.accesskey;">
  275.                         <menupopup id="file-new-menupopup">
  276.                             <menuitem id="file-new-event-menuitem"
  277.                                       label="&event.menu.file.new.event.label;"
  278.                                       accesskey="&event.menu.file.new.event.accesskey;"
  279.                                       key="new-event-key"
  280.                                       command="cmd_file_new_event"
  281.                                       disable-on-readonly="true"/>
  282.                             <menuitem id="file-new-message-menuitem"
  283.                                       label="&event.menu.file.new.message.label;"
  284.                                       accesskey="&event.menu.file.new.message.accesskey;"
  285.                                       key="new-message-key"
  286.                                       command="cmd_file_new_message"
  287.                                       disable-on-readonly="true"
  288.                                       class="lightning-only"/>
  289.                             <menuseparator id="file-new-menuseparator1"
  290.                                            class="lightning-only"/>
  291.                             <menuitem id="file-new-address-menuitem"
  292.                                       label="&event.menu.file.new.address.label;"
  293.                                       accesskey="&event.menu.file.new.address.accesskey;"
  294.                                       command="cmd_file_new_card"
  295.                                       disable-on-readonly="true"
  296.                                       class="lightning-only"/>
  297.                         </menupopup>
  298.                     </menu>
  299.                     <menuitem id="file-close-menuitem"
  300.                               label="&event.menu.file.close.label;"
  301.                               accesskey="&event.menu.file.close.accesskey;"
  302.                               key="close-key"
  303.                               command="cmd_file_close"
  304.                               disable-on-readonly="true"/>
  305.                     <menuseparator id="file-menuseparator1"/>
  306.                     <menuitem id="file-save-menuitem"
  307.                               label="&event.menu.file.save.label;"
  308.                               accesskey="&event.menu.file.save.accesskey;"
  309.                               key="save-key"
  310.                               command="cmd_save"/>
  311.                     <menuitem id="file-pagesetup-menuitem"
  312.                               label="&event.menu.file.page.setup.label;"
  313.                               accesskey="&event.menu.file.page.setup.accesskey;"
  314.                               command="cmd_printSetup"
  315.                               disable-on-readonly="true"/>
  316.                     <menuitem id="file-print-menuitem"
  317.                               label="&event.menu.file.print.label;"
  318.                               accesskey="&event.menu.file.print.accesskey;"
  319.                               key="print-key"
  320.                               command="cmd_print"
  321.                               disable-on-readonly="true"/>
  322.                     <menuseparator id="file-menuseparator1"/>
  323.                     <menuitem id="file-exit-menuitem"
  324.                               label="&event.menu.file.exit.label;"
  325.                               accesskey="&event.menu.file.exit.accesskey;"
  326.                               key="exit-key"
  327.                               command="cmd_file_exit"
  328.                               disable-on-readonly="true"/>
  329.                 </menupopup>
  330.             </menu>
  331.  
  332.             <!-- Edit menu -->
  333.             <menu id="edit-menu"
  334.                   label="&event.menu.edit.label;"
  335.                   accesskey="&event.menu.edit.accesskey;"
  336.                   collapse-on-readonly="true">
  337.                 <menupopup id="edit-menupopup">
  338.                     <menuitem id="edit-undo-menuitem"
  339.                               label="&event.menu.edit.undo.label;"
  340.                               accesskey="&event.menu.edit.undo.accesskey;"
  341.                               key="undo-key"
  342.                               command="cmd_undo"/>
  343.                     <menuitem id="edit-redo-menuitem"
  344.                               label="&event.menu.edit.redo.label;"
  345.                               accesskey="&event.menu.edit.redo.accesskey;"
  346.                               key="redo-key"
  347.                               command="cmd_redo"/>
  348.                     <menuseparator id="edit-menuseparator1"/>
  349.                     <menuitem id="edit-cut-menuitem"
  350.                               label="&event.menu.edit.cut.label;"
  351.                               accesskey="&event.menu.edit.cut.accesskey;"
  352.                               key="cut-key"
  353.                               command="cmd_cut"/>
  354.                     <menuitem id="edit-copy-menuitem"
  355.                               label="&event.menu.edit.copy.label;"
  356.                               accesskey="&event.menu.edit.copy.accesskey;"
  357.                               key="copy-key"
  358.                               command="cmd_copy"/>
  359.                     <menuitem id="edit-paste-menuitem"
  360.                               label="&event.menu.edit.paste.label;"
  361.                               accesskey="&event.menu.edit.paste.accesskey;"
  362.                               key="paste-key"
  363.                               command="cmd_paste"/>
  364.                     <menuseparator id="edit-menuseparator2"/>
  365.                     <menuitem id="edit-selectall-menuitem"
  366.                               label="&event.menu.edit.select.all.label;"
  367.                               accesskey="&event.menu.edit.select.all.accesskey;"
  368.                               key="select-all-key"
  369.                               command="cmd_selectAll"/>
  370.                 </menupopup>
  371.             </menu>
  372.  
  373.             <!-- View menu -->
  374.             <menu id="view-menu"
  375.                   label="&event.menu.view.label;"
  376.                   accesskey="&event.menu.view.accesskey;"
  377.                   collapse-on-readonly="true">
  378.                 <menupopup id="view-menupopup">
  379.                     <menu id="view-toolbars-menu"
  380.                           label="&event.menu.view.toolbars.label;"
  381.                           accesskey="&event.menu.view.toolbars.accesskey;">
  382.                         <menupopup id="view-toolbars-menupopup">
  383.                             <menuitem id="view-toolbars-event-menuitem"
  384.                                       label="&event.menu.view.toolbars.event.label;"
  385.                                       accesskey="&event.menu.view.toolbars.event.accesskey;"
  386.                                       type="checkbox"
  387.                                       checked="true"
  388.                                       command="cmd_toolbar"/>
  389.                             <menuseparator id="view-toolbars-menuseparator1"/>
  390.                             <menuitem id="view-toolbars-customize-menuitem"
  391.                                       label="&event.menu.view.toolbars.customize.label;"
  392.                                       accesskey="&event.menu.view.toolbars.customize.accesskey;"
  393.                                       command="cmd_customize"/>
  394.                         </menupopup>
  395.                     </menu>
  396.                 </menupopup>
  397.             </menu>
  398.  
  399.             <!-- Options menu -->
  400.             <menu id="options-menu"
  401.                   label="&event.menu.options.label;"
  402.                   accesskey="&event.menu.options.accesskey;">
  403.                 <menupopup id="options-menupopup"
  404.                            onpopupshowing="onPopupShowing(this)">
  405.                   <menuitem id="options-attendess-menuitem"
  406.                             label="&event.menu.options.attendees.label;"
  407.                             accesskey="&event.menu.options.attendees.accesskey;"
  408.                             command="cmd_attendees"
  409.                             disable-on-readonly="true"/>
  410.                   <menuitem id="options-link-menuitem"
  411.                             label="&event.menu.options.link.label;"
  412.                             accesskey="&event.menu.options.link.accesskey;"
  413.                             command="cmd_url"/>
  414.                   <menuitem id="options-timezone-menuitem"
  415.                             label="&event.menu.options.timezone.label;"
  416.                             accesskey="&event.menu.options.timezone.accesskey;"
  417.                             checked="false"
  418.                             type="checkbox"
  419.                             persist="checked"
  420.                             command="cmd_timezone"
  421.                             disable-on-readonly="true"/>
  422.                   <menuseparator id="options-menuseparator1"/>
  423.                   <menu id="options-priority-menu"
  424.                         label="&event.menu.options.priority.label;"
  425.                         accesskey="&event.menu.options.priority.accesskey;"
  426.                         disable-on-readonly="true">
  427.                       <menupopup id="options-priority-menupopup">
  428.                           <menuitem id="options-priority-none-menuitem"
  429.                                     label="&event.menu.options.priority.none.label;"
  430.                                     accesskey="&event.menu.options.priority.none.accesskey;"
  431.                                     type="checkbox"
  432.                                     command="cmd_priority_none"
  433.                                     disable-on-readonly="true"/>
  434.                           <menuitem id="options-priority-low-menuitem"
  435.                                     label="&event.menu.options.priority.low.label;"
  436.                                     accesskey="&event.menu.options.priority.low.accesskey;"
  437.                                     type="checkbox"
  438.                                     command="cmd_priority_low"
  439.                                     disable-on-readonly="true"/>
  440.                           <menuitem id="options-priority-normal-label"
  441.                                     label="&event.menu.options.priority.normal.label;"
  442.                                     accesskey="&event.menu.options.priority.normal.accesskey;"
  443.                                     type="checkbox"
  444.                                     command="cmd_priority_normal"
  445.                                     disable-on-readonly="true"/>
  446.                           <menuitem id="options-priority-high-label"
  447.                                     label="&event.menu.options.priority.high.label;"
  448.                                     accesskey="&event.menu.options.priority.high.accesskey;"
  449.                                     type="checkbox"
  450.                                     command="cmd_priority_high"
  451.                                     disable-on-readonly="true"/>
  452.                       </menupopup>
  453.                   </menu>
  454.                   <menu id="options-privacy-menu"
  455.                         label="&event.menu.options.privacy.label;"
  456.                         accesskey="&event.menu.options.privacy.accesskey;"
  457.                         disable-on-readonly="true">
  458.                       <menupopup id="options-privacy-menupopup">
  459.                           <menuitem id="options-privacy-public-menuitem"
  460.                                     label="&event.menu.options.privacy.public.label;"
  461.                                     accesskey="&event.menu.options.privacy.public.accesskey;"
  462.                                     type="radio"
  463.                                     privacy="PUBLIC"
  464.                                     oncommand="editPrivacy(this)"
  465.                                     disable-on-readonly="true"/>
  466.                           <menuitem id="options-privacy-confidential-menuitem"
  467.                                     label="&event.menu.options.privacy.confidential.label;"
  468.                                     accesskey="&event.menu.options.privacy.confidential.accesskey;"
  469.                                     type="radio"
  470.                                     privacy="CONFIDENTIAL"
  471.                                     oncommand="editPrivacy(this)"
  472.                                     disable-on-readonly="true"/>
  473.                           <menuitem id="options-privacy-private-menuitem"
  474.                                     label="&event.menu.options.privacy.private.label;"
  475.                                     accesskey="&event.menu.options.privacy.private.accesskey;"
  476.                                     type="radio"
  477.                                     privacy="PRIVATE"
  478.                                     oncommand="editPrivacy(this)"
  479.                                     disable-on-readonly="true"/>
  480.                       </menupopup>
  481.                   </menu>
  482.                   <menu id="options-status-menu"
  483.                         label="&newevent.status.label;"
  484.                         accesskey="&newevent.status.accesskey;"
  485.                         class="event-only"
  486.                         disable-on-readonly="true">
  487.                     <menupopup id="options-status-menupopup">
  488.                       <menuitem id="options-status-none-menuitem"
  489.                                 label="&newevent.status.none.label;"
  490.                                 type="checkbox"
  491.                                 command="cmd_status_none"
  492.                                 disable-on-readonly="true"/>
  493.                       <menuitem id="options-status-tentative-menuitem"
  494.                                 label="&newevent.status.tentative.label;"
  495.                                 type="checkbox"
  496.                                 command="cmd_status_tentative"
  497.                                 disable-on-readonly="true"/>
  498.                       <menuitem id="options-status-confirmed-menuitem"
  499.                                 label="&newevent.status.confirmed.label;"
  500.                                 type="checkbox"
  501.                                 command="cmd_status_confirmed"
  502.                                 disable-on-readonly="true"/>
  503.                       <menuitem id="options-status-canceled-menuitem"
  504.                                 label="&newevent.status.cancelled.label;"
  505.                                 type="checkbox"
  506.                                 command="cmd_status_cancelled"
  507.                                 disable-on-readonly="true"/>
  508.                     </menupopup>
  509.                   </menu>
  510.                   <menuseparator id="options-menuseparator2"/>
  511.                   <menu id="options-freebusy-menu"
  512.                         label="&event.menu.options.show.time.label;"
  513.                         accesskey="&event.menu.options.show.time.accesskey;"
  514.                         disable-on-readonly="true">
  515.                       <menupopup id="options-freebusy-menupopup">
  516.                           <menuitem id="options-freebusy-busy-menuitem"
  517.                                     label="&event.menu.options.show.time.busy.label;"
  518.                                     accesskey="&event.menu.options.show.time.busy.accesskey;"
  519.                                     type="checkbox"
  520.                                     command="cmd_showtimeas_busy"
  521.                                     disable-on-readonly="true"/>
  522.                           <menuitem id="options-freebusy-free-menuitem"
  523.                                     label="&event.menu.options.show.time.free.label;"
  524.                                     accesskey="&event.menu.options.show.time.free.accesskey;"
  525.                                     type="checkbox"
  526.                                     command="cmd_showtimeas_free"
  527.                                     disable-on-readonly="true"/>
  528.                       </menupopup>
  529.                   </menu>
  530.                 </menupopup>
  531.             </menu>
  532.  
  533.             <!-- Help Menu -->
  534.             <menu id="help-menu"
  535.                   label="&event.help.label;"
  536.                   accesskey="&event.help.accesskey;">
  537.                 <menupopup id="help-menupopup">
  538.                     <menuitem id="help-relnotes-menuitem"
  539.                               label="&event.help.release.notes.label;"
  540.                               accesskey="&event.help.release.notes.accesskey;"
  541.                               oncommand="openReleaseNotes()"/>
  542.                     <menuitem id="help-help-menuitem"
  543.                               label="&event.help.help.label;"
  544.                               accesskey="&event.help.help.accesskey;"
  545.                               oncommand="openRegionURL('mailnews.hints_and_tips.url')"
  546.                               class="lightning-only"/>
  547.                     <menuseparator id="help-menuseparator1"/>
  548.                     <menuitem id="help-about-menuitem"
  549.                               label="&event.help.about.label;"
  550.                               accesskey="&event.help.about.accesskey;"
  551.                               oncommand="openAboutDialog()"/>
  552.                 </menupopup>
  553.             </menu>
  554.         </menubar>
  555.  
  556.         <!-- Toolbar -->
  557.         <toolbarpalette id="event-toolbarpalette">
  558.             <toolbarbutton id="button-save"
  559.                            mode="dialog"
  560.                            class="cal-toolbarbutton-2"
  561.                            label="&event.toolbar.save.label;"
  562.                            command="cmd_accept"/>
  563.             <toolbarbutton id="button-attendees"
  564.                            mode="dialog"
  565.                            class="cal-toolbarbutton-2 event-only"
  566.                            disable-on-readonly="true"
  567.                            label="&event.toolbar.attendees.label;"
  568.                            command="cmd_attendees"/>
  569.             <toolbarbutton id="button-privacy"
  570.                            mode="dialog"
  571.                            class="cal-toolbarbutton-2"
  572.                            type="menu-button"
  573.                            disable-on-readonly="true"
  574.                            label="&event.toolbar.privacy.label;">
  575.                 <menupopup id="event-privacy-menupopup">
  576.                     <menuitem id="event-privacy-public-menuitem"
  577.                               name="event-privacy-group"
  578.                               label="&event.menu.options.privacy.public.label;"
  579.                               type="radio"
  580.                               privacy="PUBLIC"
  581.                               oncommand="editPrivacy(this)"/>
  582.                     <menuitem id="event-privacy-confidential-menuitem"
  583.                               name="event-privacy-group"
  584.                               label="&event.menu.options.privacy.confidential.label;"
  585.                               type="radio"
  586.                               privacy="CONFIDENTIAL"
  587.                               oncommand="editPrivacy(this)"/>
  588.                     <menuitem id="event-privacy-private-menuitem"
  589.                               name="event-privacy-group"
  590.                               label="&event.menu.options.privacy.private.label;"
  591.                               type="radio"
  592.                               privacy="PRIVATE"
  593.                               oncommand="editPrivacy(this)"/>
  594.                 </menupopup>
  595.             </toolbarbutton>
  596.             <toolbarbutton id="button-url"
  597.                            mode="dialog"
  598.                            class="cal-toolbarbutton-2"
  599.                            label="&event.toolbar.link.label;"
  600.                            command="cmd_url"
  601.                            disable-on-readonly="true"/>
  602.         </toolbarpalette>
  603.  
  604.         <toolbar id="event-toolbar"
  605.                  class="chromeclass-toolbar"
  606.                  customizable="true"
  607.                  context="event-dialog-toolbar-context-menu"
  608.                  defaultset="button-save,button-attendees,button-privacy,button-url"/>
  609.  
  610.         <toolbarset id="custom-toolbars"/>
  611.  
  612.     </toolbox>
  613.  
  614.     <grid id="event-grid"
  615.           flex="1"
  616.           style="padding: 8px 10px 10px 8px;">
  617.         <columns id="event-grid-columns">
  618.             <column id="event-description-column"/>
  619.             <column id="event-controls-column" flex="1"/>
  620.         </columns>
  621.  
  622.         <rows id="event-grid-rows">
  623.             <!-- Title -->
  624.             <row id="event-grid-title-row"
  625.                  align="center">
  626.                 <label value="&event.title.textbox.label;"
  627.                        accesskey="&event.title.textbox.accesskey;"
  628.                        control="item-title"
  629.                        disable-on-readonly="true"/>
  630.                 <textbox id="item-title"
  631.                          disable-on-readonly="true"
  632.                          flex="1"
  633.                          oninput="updateTitle()"/>
  634.             </row>
  635.  
  636.             <!-- Location -->
  637.             <row id="event-grid-location-row"
  638.                  align="center">
  639.                 <label value="&event.location.label;"
  640.                        accesskey="&event.location.accesskey;"
  641.                        control="item-location"
  642.                        disable-on-readonly="true"/>
  643.                 <textbox id="item-location"
  644.                          disable-on-readonly="true"/>
  645.             </row>
  646.  
  647.             <!-- Category & Calendar -->
  648.             <row id="event-grid-category-color-row"
  649.                  align="center">
  650.                 <label value="&event.categories.label;"
  651.                        accesskey="&event.categories.accesskey;"
  652.                        control="item-categories"
  653.                        disable-on-readonly="true"/>
  654.                 <hbox id="event-grid-category-box" align="center">
  655.                     <menulist id="item-categories"
  656.                               disable-on-readonly="true"
  657.                               flex="1"/>
  658.                     <label value="&event.calendar.label;"
  659.                            accesskey="&event.calendar.accesskey;"
  660.                            control="item-calendar"
  661.                            disable-on-readonly="true"/>
  662.                     <menulist id="item-calendar"
  663.                               disable-on-readonly="true"
  664.                               flex="1"
  665.                               oncommand="updateCalendar();"/>
  666.                 </hbox>
  667.             </row>
  668.  
  669.             <!-- Attendees -->
  670.             <row id="event-grid-attendee-row" align="center">
  671.               <label value="&event.attendees.label;"
  672.                      accesskey="&event.attendees.accesskey;"
  673.                      control="attendee-list"
  674.                      disable-on-readonly="true"/>
  675.               <label id="attendee-list"
  676.                      class="text-link"
  677.                      crop="right"
  678.                      onclick="showAttendeePopup(event)"/>
  679.             </row>
  680.             <row id="event-grid-attendee-row-2" align="center">
  681.               <spacer/>
  682.               <checkbox id="send-invitations-checkbox"
  683.                         class="lightning-only"
  684.                         label="&newevent.attendees.sendEmail.label;"
  685.                         pack="start"/>
  686.             </row>
  687.  
  688.             <separator class="groove" id="event-grid-basic-separator"/>
  689.  
  690.             <!-- All-Day -->
  691.             <row id="event-grid-allday-row"
  692.                  align="center">
  693.                 <spacer/>
  694.                 <checkbox id="event-all-day"
  695.                           class="event-only"
  696.                           disable-on-readonly="true"
  697.                           label="&event.alldayevent.label;"
  698.                           accesskey="&event.alldayevent.accesskey;"
  699.                           oncommand="onUpdateAllDay();"/>
  700.             </row>
  701.  
  702.             <!-- StartDate -->
  703.             <row id="event-grid-startdate-row" align="center">
  704.                 <hbox id="event-grid-startdate-label-box"
  705.                       align="center">
  706.                     <label value="&event.from.label;"
  707.                            accesskey="&event.from.accesskey;"
  708.                            control="event-starttime"
  709.                            class="event-only"
  710.                            disable-on-readonly="true"/>
  711.                     <label value="&task.from.label;"
  712.                            accesskey="&task.from.accesskey;"
  713.                            control="todo-has-entrydate"
  714.                            class="todo-only"
  715.                            disable-on-readonly="true"/>
  716.                 </hbox>
  717.                 <hbox id="event-grid-startdate-picker-box"
  718.                       align="center">
  719.                     <datetimepicker id="event-starttime"
  720.                                     class="event-only"
  721.                                     disable-on-readonly="true"
  722.                                     onchange="dateTimeControls2State(true);"/>
  723.                     <checkbox id="todo-has-entrydate"
  724.                               class="todo-only checkbox-no-label"
  725.                               disable-on-readonly="true"
  726.                               oncommand="updateEntryDate();"/>
  727.                     <datetimepicker id="todo-entrydate"
  728.                                     class="todo-only"
  729.                                     disable-on-readonly="true"
  730.                                     onchange="dateTimeControls2State(true);"/>
  731.                     <label id="timezone-starttime"
  732.                            class="text-link"
  733.                            collapsed="true"
  734.                            crop="right"
  735.                            disable-on-readonly="true"
  736.                            flex="1"
  737.                            hyperlink="true"
  738.                            onclick="editStartTimezone()"/>
  739.                 </hbox>
  740.             </row>
  741.  
  742.             <!-- EndDate -->
  743.             <row id="event-grid-enddate-row">
  744.                 <hbox id="event-grid-enddate-label-box"
  745.                       align="center">
  746.                     <label value="&event.to.label;"
  747.                            accesskey="&event.to.accesskey;"
  748.                            control="event-endtime"
  749.                            class="event-only"
  750.                            disable-on-readonly="true"/>
  751.                     <label value="&task.to.label;"
  752.                            accesskey="&task.to.accesskey;"
  753.                            control="todo-has-duedate"
  754.                            class="todo-only"
  755.                            disable-on-readonly="true"/>
  756.                 </hbox>
  757.                 <vbox>
  758.                     <hbox id="event-grid-enddate-picker-box"
  759.                           align="center">
  760.                         <datetimepicker id="event-endtime"
  761.                                         class="event-only"
  762.                                         disable-on-readonly="true"
  763.                                         onchange="dateTimeControls2State(false);"/>
  764.                         <checkbox id="todo-has-duedate"
  765.                                   class="todo-only checkbox-no-label"
  766.                                   disable-on-readonly="true"
  767.                                   oncommand="updateDueDate();"/>
  768.                         <datetimepicker id="todo-duedate"
  769.                                         class="todo-only"
  770.                                         disable-on-readonly="true"
  771.                                         onchange="dateTimeControls2State(false);"/>
  772.                         <label id="timezone-endtime"
  773.                                class="text-link"
  774.                                collapsed="true"
  775.                                crop="right"
  776.                                disable-on-readonly="true"
  777.                                flex="1"
  778.                                hyperlink="true"
  779.                                onclick="editEndTimezone()"/>
  780.                     </hbox>
  781.                 </vbox>
  782.             </row>
  783.  
  784.             <row id="event-grid-todo-status-row"
  785.                  class="todo-only"
  786.                  align="center">
  787.                 <label id="todo-status-label"
  788.                        value="&task.status.label;"
  789.                        accesskey="&task.status.accesskey;"
  790.                        control="todo-status"
  791.                        disable-on-readonly="true"/>
  792.                 <hbox id="event-grid-todo-status-picker-box"
  793.                       align="center">
  794.                     <menulist id="todo-status"
  795.                               class="todo-only"
  796.                               disable-on-readonly="true"
  797.                               oncommand="updateToDoStatus(this.value);">
  798.                         <menupopup id="todo-status-menupopup">
  799.                             <menuitem id="todo-status-none-menuitem"
  800.                                       label="&newevent.status.none.label;"
  801.                                       value="NONE"/>
  802.                             <menuitem id="todo-status-needsaction-menuitem"
  803.                                       label="&newevent.status.needsaction.label;"
  804.                                       value="NEEDS-ACTION"/>
  805.                             <menuitem id="todo-status-inprogress-menuitem"
  806.                                       label="&newevent.status.inprogress.label;"
  807.                                       value="IN-PROCESS"/>
  808.                             <menuitem id="todo-status-completed-menuitem"
  809.                                       label="&newevent.status.completed.label;"
  810.                                       value="COMPLETED"/>
  811.                             <menuitem id="todo-status-canceled-menuitem"
  812.                                       label="&newevent.status.cancelled.label;"
  813.                                       value="CANCELLED"/>
  814.                         </menupopup>
  815.                     </menulist>
  816.                     <datepicker id="completed-date-picker"
  817.                                 class="todo-only"
  818.                                 disable-on-readonly="true"
  819.                                 disabled="true"
  820.                                 value=""/>
  821.                     <textbox id="percent-complete-textbox"
  822.                              disable-on-readonly="true"
  823.                              oninput="validateIntegers(event);"
  824.                              size="3"/>
  825.                     <label id="percent-complete-label"
  826.                            class="todo-only"
  827.                            disable-on-readonly="true"
  828.                            value="&newtodo.percentcomplete.label;"/>
  829.                 </hbox>
  830.             </row>
  831.  
  832.             <separator id="event-grid-recurrence-separator" class="groove"/>
  833.  
  834.             <!-- Recurrence -->
  835.             <row id="event-grid-recurrence-row"
  836.                  align="center">
  837.                 <label value="&event.repeat.label;"
  838.                        accesskey="&event.repeat.accesskey;"
  839.                        control="item-repeat"
  840.                        disable-on-readonly="true"/>
  841.                 <hbox id="event-grid-recurrence-picker-box"
  842.                       align="center"
  843.                       flex="1">
  844.                     <menulist id="item-repeat"
  845.                               disable-on-readonly="true"
  846.                               oncommand="updateRepeat()">
  847.                         <menupopup id="item-repeat-menupopup">
  848.                             <menuitem id="repeat-none-menuitem"
  849.                                       label="&event.repeat.does.not.repeat.label;"
  850.                                       selected="true"
  851.                                       value="none"/>
  852.                             <menuitem id="repeat-daily-menuitem"
  853.                                       label="&event.repeat.daily.label;"
  854.                                       value="daily"/>
  855.                             <menuitem id="repeat-weekly-menuitem"
  856.                                       label="&event.repeat.weekly.label;"
  857.                                       value="weekly"/>
  858.                             <menuitem id="repeat-weekday-menuitem"
  859.                                       label="&event.repeat.every.weekday.label;"
  860.                                       value="every.weekday"/>
  861.                             <menuitem id="repeat-biweekly-menuitem"
  862.                                       label="&event.repeat.bi.weekly.label;"
  863.                                       value="bi.weekly"/>
  864.                             <menuitem id="repeat-monthly-menuitem"
  865.                                       label="&event.repeat.monthly.label;"
  866.                                       value="monthly"/>
  867.                             <menuitem id="repeat-yearly-menuitem"
  868.                                       label="&event.repeat.yearly.label;"
  869.                                       value="yearly"/>
  870.                             <menuseparator id="item-repeat-separator"/>
  871.                             <menuitem id="repeat-custom-menuitem"
  872.                                       label="&event.repeat.custom.label;"
  873.                                       value="custom"/>
  874.                         </menupopup>
  875.                     </menulist>
  876.                     <vbox id="repeat-details" flex="1">
  877.                         <label class="text-link"
  878.                                crop="right"
  879.                                disable-on-readonly="true"
  880.                                hyperlink="true"
  881.                                flex="1"
  882.                                onclick="updateRepeat()"/>
  883.                     </vbox>
  884.                 </hbox>
  885.             </row>
  886.  
  887.             <separator id="event-grid-alarm-separator"
  888.                        class="groove"/>
  889.  
  890.             <!-- Reminder (Alarm) -->
  891.             <row id="event-grid-alarm-row"
  892.                  align="center">
  893.                 <label value="&event.reminder.label;"
  894.                        accesskey="&event.reminder.accesskey;"
  895.                        control="item-alarm"
  896.                        disable-on-readonly="true"/>
  897.                 <hbox id="event-grid-alarm-picker-box"
  898.                       align="center">
  899.                     <menulist id="item-alarm"
  900.                               disable-on-readonly="true"
  901.                               oncommand="updateReminder()">
  902.                         <menupopup id="item-alarm-menupopup">
  903.                             <menuitem id="reminder-none-menuitem"
  904.                                       label="&event.reminder.none.label;"
  905.                                       selected="true"
  906.                                       value="none"/>
  907.                             <menuitem id="reminder-5minutes-menuitem"
  908.                                       label="&event.reminder.5minutes.before.label;"
  909.                                       length="5"
  910.                                       origin="1"
  911.                                       relation="START"
  912.                                       unit="minutes"/>
  913.                             <menuitem id="reminder-10minutes-menuitem"
  914.                                       label="&event.reminder.10minutes.before.label;"
  915.                                       length="10"
  916.                                       origin="1"
  917.                                       relation="START"
  918.                                       unit="minutes"/>
  919.                             <menuitem id="reminder-15minutes-menuitem"
  920.                                       label="&event.reminder.15minutes.before.label;"
  921.                                       length="15"
  922.                                       origin="1"
  923.                                       relation="START"
  924.                                       unit="minutes"/>
  925.                             <menuitem id="reminder-30minutes-menuitem"
  926.                                       label="&event.reminder.30minutes.before.label;"
  927.                                       length="30"
  928.                                       origin="1"
  929.                                       relation="START"
  930.                                       unit="minutes"/>
  931.                             <menuitem id="reminder-45minutes-menuitem"
  932.                                       label="&event.reminder.45minutes.before.label;"
  933.                                       length="45"
  934.                                       origin="1"
  935.                                       relation="START"
  936.                                       unit="minutes"/>
  937.                             <menuseparator id="reminder-minutes-separator"/>
  938.                             <menuitem id="reminder-1hour-menuitem"
  939.                                       label="&event.reminder.1hour.before.label;"
  940.                                       length="1"
  941.                                       origin="1"
  942.                                       relation="START"
  943.                                       unit="hours"/>
  944.                             <menuitem id="reminder-2hours-menuitem"
  945.                                       label="&event.reminder.2hours.before.label;"
  946.                                       length="2"
  947.                                       origin="1"
  948.                                       relation="START"
  949.                                       unit="hours"/>
  950.                             <menuitem id="reminder-5hours-menuitem"
  951.                                       label="&event.reminder.5hours.before.label;"
  952.                                       length="5"
  953.                                       origin="1"
  954.                                       relation="START"
  955.                                       unit="hours"/>
  956.                             <menuitem id="reminder-15hours-menuitem"
  957.                                       label="&event.reminder.15hours.before.label;"
  958.                                       length="15"
  959.                                       origin="1"
  960.                                       relation="START"
  961.                                       unit="hours"/>
  962.                             <menuseparator id="reminder-hours-separator"/>
  963.                             <menuitem id="reminder-1day-menuitem"
  964.                                       label="&event.reminder.1day.before.label;"
  965.                                       length="1"
  966.                                       origin="1"
  967.                                       relation="START"
  968.                                       unit="days"/>
  969.                             <menuitem id="reminder-2days-menuitem"
  970.                                       label="&event.reminder.2days.before.label;"
  971.                                       length="2"
  972.                                       origin="1"
  973.                                       relation="START"
  974.                                       unit="days"/>
  975.                             <menuitem id="reminder-1week-menuitem"
  976.                                       label="&event.reminder.1week.before.label;"
  977.                                       length="7"
  978.                                       origin="1"
  979.                                       relation="START"
  980.                                       unit="days"/>
  981.                             <menuseparator id="reminder-custom-separator"/>
  982.                             <menuitem id="reminder-custom-menuitem"
  983.                                       label="&event.reminder.custom.label;"
  984.                                       value="custom"/>
  985.                         </menupopup>
  986.                     </menulist>
  987.                     <vbox id="reminder-details">
  988.                         <label class="text-link"
  989.                                disable-on-readonly="true"
  990.                                flex="1"
  991.                                hyperlink="true"
  992.                                onclick="updateReminder()"/>
  993.                     </vbox>
  994.                 </hbox>
  995.             </row>
  996.  
  997.             <separator id="event-grid-description-separator"
  998.                        class="groove"/>
  999.  
  1000.             <!-- Description -->
  1001.             <row id="description-row" flex="1">
  1002.                 <label value="&event.description.label;"
  1003.                        accesskey="&event.description.accesskey;"
  1004.                        control="item-description"
  1005.                        disable-on-readonly="true"/>
  1006.                 <textbox id="item-description"
  1007.                          disable-on-readonly="true"
  1008.                          flex="1"
  1009.                          multiline="true"
  1010.                          rows="12"/>
  1011.             </row>
  1012.  
  1013.             <!-- Document -->
  1014.             <row id="event-grid-document-row" align="center">
  1015.                 <label value="&event.link.label;"
  1016.                        accesskey="&event.link.accesskey;"
  1017.                        control="document-link"
  1018.                        disable-on-readonly="true"/>
  1019.                 <hbox id="event-grid-document-picker-box"
  1020.                       align="center">
  1021.                     <label id="document-link"
  1022.                            class="text-link"
  1023.                            crop="right"
  1024.                            flex="1"
  1025.                            onclick="browseDocument()"/>
  1026.                     <button label="&event.link.change.label;"
  1027.                             accesskey="&event.link.change.accesskey;"
  1028.                             command="cmd_url"
  1029.                             disable-on-readonly="true"/>
  1030.                 </hbox>
  1031.             </row>
  1032.         </rows>
  1033.     </grid>
  1034.  
  1035.     <statusbar class="chromeclass-status" id="status-bar">
  1036.       <statusbarpanel id="status-text"
  1037.                       flex="1"/>
  1038.       <statusbarpanel id="status-privacy"
  1039.                       align="center"
  1040.                       flex="1"
  1041.                       collapsed="true"
  1042.                       pack="start">
  1043.         <hbox id="status-privacy-public-box" privacy="PUBLIC">
  1044.           <image id="button-privacy-public" class="cal-statusbar-1"/>
  1045.           <label value="&event.menu.options.privacy.public.label;"/>
  1046.         </hbox>
  1047.         <hbox id="status-privacy-confidential-box" privacy="CONFIDENTIAL">
  1048.           <image id="button-privacy-confidential" class="cal-statusbar-1"/>
  1049.           <label value="&event.menu.options.privacy.confidential.label;"/>
  1050.         </hbox>
  1051.         <hbox id="status-privacy-private-box" privacy="PRIVATE">
  1052.           <image id="button-privacy-private" class="cal-statusbar-1"/>
  1053.           <label value="&event.menu.options.privacy.private.label;"/>
  1054.         </hbox>
  1055.       </statusbarpanel>
  1056.       <statusbarpanel id="status-priority"
  1057.                       align="center"
  1058.                       flex="1"
  1059.                       collapsed="true"
  1060.                       pack="start">
  1061.         <label value="&event.priority.label;"/>
  1062.         <image id="button-importance-low"
  1063.                class="cal-statusbar-1"
  1064.                collapsed="true"
  1065.                value="low"/>
  1066.         <image id="button-importance-medium"
  1067.                class="cal-statusbar-1"
  1068.                collapsed="true"
  1069.                value="normal"/>
  1070.         <image id="button-importance-high"
  1071.                class="cal-statusbar-1"
  1072.                collapsed="true"
  1073.                value="high"/>
  1074.       </statusbarpanel>
  1075.     </statusbar>
  1076.  
  1077.     <popupset id="event-dialog-popupset">
  1078.       <popup id="attendee-popup" position="after_start">
  1079.         <menuitem id="attendee-popup-invite-menuitem"
  1080.                   label="&event.invite.attendees.label;"
  1081.                   accesskey="&event.invite.attendees.accesskey;"
  1082.                   command="cmd_attendees"
  1083.                   disable-on-readonly="true"/>
  1084.         <menuseparator id="attendees-popup-menuseparator"/>
  1085.         <menuitem id="attendee-popup-sendemail-menuitem"
  1086.                   label="&event.email.attendees.label;"
  1087.                   accesskey="&event.email.attendees.accesskey;"
  1088.                   command="cmd_email"/>
  1089.         <menuitem id="attendee-popup-sendtentativeemail-menuitem"
  1090.                   label="&event.email.tentative.attendees.label;"
  1091.                   accesskey="&event.email.tentative.attendees.accesskey;"
  1092.                   command="cmd_email_undecided"/>
  1093.         <menuseparator id="attendee-popup-separator"/>
  1094.         <menuitem class="status-icon menuitem-iconic" oncommand="sendMailToAttendees([event.target.attendee])" crop="end"/>
  1095.       </popup>
  1096.     </popupset>
  1097. </dialog>
  1098.